package com.ruoyi.system.vis.service.impl;

import com.ruoyi.system.vis.domain.VisRegList;
import com.ruoyi.system.vis.mapper.VisRegListMapper;
import com.ruoyi.system.vis.service.VisRegListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisRegListServiceImpl implements VisRegListService {
    @Autowired
    private VisRegListMapper visRegListMapper;

    @Override
    public List<VisRegList> selectRegList( ) {
        return visRegListMapper.selectRegList();
    }

    @Override
    public List<String> selectDept() {
        return visRegListMapper.selectDept();
    }

    @Override
    public List<String> selectRegister() {
        return visRegListMapper.selectRegister();
    }

    @Override
    public int insertRegList(VisRegList VisRegList) {
        return visRegListMapper.insertRegList(VisRegList);
    }

    @Override
    public int updateStatus(String patientName) {
        int count = visRegListMapper.updateStatus(patientName);
        return count;
    }
}
